import { RMIProxyObject } from "../../Engine/RMI/RMIProxyObject";
import { IBagPrx } from "./IBagPrx";
import { AMI_IBag_addExtendBarCapacity } from "./AMI_IBag_addExtendBarCapacity";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { Outgoing } from "../../Engine/RMI/Outgoing";
import { AMI_IBag_answerGuessCouplet } from "./AMI_IBag_answerGuessCouplet";
import { AMI_IBag_batchRemove } from "./AMI_IBag_batchRemove";
import { DictStrIntHelper } from "../Public/DictStrIntHelper";
import { AMI_IBag_broadcastOpenCopyBoxItem } from "./AMI_IBag_broadcastOpenCopyBoxItem";
import { AMI_IBag_broadcastOpenHappyBagItem } from "./AMI_IBag_broadcastOpenHappyBagItem";
import { AMI_IBag_fastMerge } from "./AMI_IBag_fastMerge";
import { AMI_IBag_feedItem } from "./AMI_IBag_feedItem";
import { AMI_IBag_getArenaGift } from "./AMI_IBag_getArenaGift";
import { AMI_IBag_getBag } from "./AMI_IBag_getBag";
import { AMI_IBag_initOpenGuessCouplet } from "./AMI_IBag_initOpenGuessCouplet";
import { AMI_IBag_merge } from "./AMI_IBag_merge";
import { AMI_IBag_move } from "./AMI_IBag_move";
import { AMI_IBag_moveBag } from "./AMI_IBag_moveBag";
import { AMI_IBag_moveInBag } from "./AMI_IBag_moveInBag";
import { AMI_IBag_moveIntoWardrobe } from "./AMI_IBag_moveIntoWardrobe";
import { AMI_IBag_moveOutOfWardrobe } from "./AMI_IBag_moveOutOfWardrobe";
import { AMI_IBag_openArenaGiftBag } from "./AMI_IBag_openArenaGiftBag";
import { AMI_IBag_openCopyBox } from "./AMI_IBag_openCopyBox";
import { AMI_IBag_openHappyBag } from "./AMI_IBag_openHappyBag";
import { AMI_IBag_remove } from "./AMI_IBag_remove";
import { AMI_IBag_removeArenaGift } from "./AMI_IBag_removeArenaGift";
import { AMI_IBag_removeItemInWardrobe } from "./AMI_IBag_removeItemInWardrobe";
import { AMI_IBag_shakeArenaGift } from "./AMI_IBag_shakeArenaGift";
import { AMI_IBag_showOpenCopyBox } from "./AMI_IBag_showOpenCopyBox";
import { AMI_IBag_showOpenHappyBag } from "./AMI_IBag_showOpenHappyBag";
import { AMI_IBag_split } from "./AMI_IBag_split";
import { AMI_IBag_tidy } from "./AMI_IBag_tidy";
import { AMI_IBag_use } from "./AMI_IBag_use";
import { SeqStringHelper } from "../Public/SeqStringHelper";
import { AMI_IBag_use5FBChip } from "./AMI_IBag_use5FBChip";
import { AMI_IBag_useLottery } from "./AMI_IBag_useLottery";
import { AMI_IBag_useRandItem } from "./AMI_IBag_useRandItem";
import { DictIntIntHelper } from "../Public/DictIntIntHelper";
import { AMI_IBag_useRandPetEgg } from "./AMI_IBag_useRandPetEgg";
type int = number;
//class IBagPrxHelper
    
    export  class IBagPrxHelper extends RMIProxyObject implements IBagPrx
    {
        constructor()
        {
            
            super();name = "IBag";
            return;
        }

        public addExtendBarCapacity_async(arg1: AMI_IBag_addExtendBarCapacity, arg2: int): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("addExtendBarCapacity");
            var loc3;
            (loc3 = new SerializeStream()).writeInt(arg2);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public answerGuessCouplet_async(arg1: AMI_IBag_answerGuessCouplet, arg2: string, arg3: string): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("answerGuessCouplet");
            var loc3;
            (loc3 = new SerializeStream()).writeString(arg2);
            loc3.writeString(arg3);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public batchRemove_async(arg1: AMI_IBag_batchRemove, arg2: int, arg3: Map<any, any> /* flash.utils.Dictionary */): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("batchRemove");
            var loc3;
            (loc3 = new SerializeStream()).writeInt(arg2);
            DictStrIntHelper.write(loc3, arg3);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public broadcastOpenCopyBoxItem_async(arg1: AMI_IBag_broadcastOpenCopyBoxItem): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("broadcastOpenCopyBoxItem");
            var loc3=new SerializeStream();
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public broadcastOpenHappyBagItem_async(arg1: AMI_IBag_broadcastOpenHappyBagItem): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("broadcastOpenHappyBagItem");
            var loc3=new SerializeStream();
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public fastMerge_async(arg1: AMI_IBag_fastMerge, arg2: int): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("fastMerge");
            var loc3;
            (loc3 = new SerializeStream()).writeInt(arg2);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public feedItem_async(arg1: AMI_IBag_feedItem): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("feedItem");
            var loc3=new SerializeStream();
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public getArenaGift_async(arg1: AMI_IBag_getArenaGift, arg2: string): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("getArenaGift");
            var loc3;
            (loc3 = new SerializeStream()).writeString(arg2);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public getBag_async(arg1: AMI_IBag_getBag, arg2: int): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("getBag");
            var loc3;
            (loc3 = new SerializeStream()).writeInt(arg2);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public initOpenGuessCouplet_async(arg1: AMI_IBag_initOpenGuessCouplet, arg2: string): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("initOpenGuessCouplet");
            var loc3;
            (loc3 = new SerializeStream()).writeString(arg2);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public merge_async(arg1: AMI_IBag_merge, arg2: int, arg3: string, arg4: string): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("merge");
            var loc3;
            (loc3 = new SerializeStream()).writeInt(arg2);
            loc3.writeString(arg3);
            loc3.writeString(arg4);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public move_async(arg1: AMI_IBag_move, arg2: string, arg3: int, arg4: int, arg5: int, arg6: int): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("move");
            var loc3;
            (loc3 = new SerializeStream()).writeString(arg2);
            loc3.writeInt(arg3);
            loc3.writeInt(arg4);
            loc3.writeInt(arg5);
            loc3.writeInt(arg6);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public moveBag_async(arg1: AMI_IBag_moveBag, arg2: int, arg3: int, arg4: Map<any, any> /* flash.utils.Dictionary */): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("moveBag");
            var loc3;
            (loc3 = new SerializeStream()).writeInt(arg2);
            loc3.writeInt(arg3);
            DictStrIntHelper.write(loc3, arg4);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public moveInBag_async(arg1: AMI_IBag_moveInBag, arg2: string, arg3: int, arg4: int, arg5: int): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("moveInBag");
            var loc3;
            (loc3 = new SerializeStream()).writeString(arg2);
            loc3.writeInt(arg3);
            loc3.writeInt(arg4);
            loc3.writeInt(arg5);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public moveIntoWardrobe_async(arg1: AMI_IBag_moveIntoWardrobe, arg2: int, arg3: string): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("moveIntoWardrobe");
            var loc3;
            (loc3 = new SerializeStream()).writeInt(arg2);
            loc3.writeString(arg3);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public moveOutOfWardrobe_async(arg1: AMI_IBag_moveOutOfWardrobe, arg2: int, arg3: string): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("moveOutOfWardrobe");
            var loc3;
            (loc3 = new SerializeStream()).writeInt(arg2);
            loc3.writeString(arg3);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public openArenaGiftBag_async(arg1: AMI_IBag_openArenaGiftBag, arg2: string): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("openArenaGiftBag");
            var loc3;
            (loc3 = new SerializeStream()).writeString(arg2);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public openCopyBox_async(arg1: AMI_IBag_openCopyBox, arg2: string, arg3: Boolean): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("openCopyBox");
            var loc3;
            (loc3 = new SerializeStream()).writeString(arg2);
            loc3.writeBool(arg3);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public openHappyBag_async(arg1: AMI_IBag_openHappyBag, arg2: string, arg3: int): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("openHappyBag");
            var loc3;
            (loc3 = new SerializeStream()).writeString(arg2);
            loc3.writeInt(arg3);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public remove_async(arg1: AMI_IBag_remove, arg2: string): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("remove");
            var loc3;
            (loc3 = new SerializeStream()).writeString(arg2);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public removeArenaGift_async(arg1: AMI_IBag_removeArenaGift, arg2: string, arg3: int): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("removeArenaGift");
            var loc3;
            (loc3 = new SerializeStream()).writeString(arg2);
            loc3.writeInt(arg3);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public removeItemInWardrobe_async(arg1: AMI_IBag_removeItemInWardrobe, arg2: string): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("removeItemInWardrobe");
            var loc3;
            (loc3 = new SerializeStream()).writeString(arg2);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public shakeArenaGift_async(arg1: AMI_IBag_shakeArenaGift, arg2: string): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("shakeArenaGift");
            var loc3;
            (loc3 = new SerializeStream()).writeString(arg2);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public showOpenCopyBox_async(arg1: AMI_IBag_showOpenCopyBox, arg2: int): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("showOpenCopyBox");
            var loc3;
            (loc3 = new SerializeStream()).writeInt(arg2);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public showOpenHappyBag_async(arg1: AMI_IBag_showOpenHappyBag, arg2: string): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("showOpenHappyBag");
            var loc3;
            (loc3 = new SerializeStream()).writeString(arg2);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public split_async(arg1: AMI_IBag_split, arg2: string, arg3: int): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("split");
            var loc3;
            (loc3 = new SerializeStream()).writeString(arg2);
            loc3.writeInt(arg3);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public tidy_async(arg1: AMI_IBag_tidy, arg2: int): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("tidy");
            var loc3;
            (loc3 = new SerializeStream()).writeInt(arg2);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public use_async(arg1: AMI_IBag_use, arg2: string, arg3: int, arg4: Array<any>): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("use");
            var loc3;
            (loc3 = new SerializeStream()).writeString(arg2);
            loc3.writeInt(arg3);
            SeqStringHelper.write(loc3, arg4);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public use5FBChip_async(arg1: AMI_IBag_use5FBChip, arg2: string): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("use5FBChip");
            var loc3;
            (loc3 = new SerializeStream()).writeString(arg2);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public useLottery_async(arg1: AMI_IBag_useLottery, arg2: string, arg3: int): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("useLottery");
            var loc3;
            (loc3 = new SerializeStream()).writeString(arg2);
            loc3.writeInt(arg3);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public useRandItem_async(arg1: AMI_IBag_useRandItem, arg2: int, arg3: string, arg4: Map<any, any> /* flash.utils.Dictionary */): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("useRandItem");
            var loc3;
            (loc3 = new SerializeStream()).writeInt(arg2);
            loc3.writeString(arg3);
            DictIntIntHelper.write(loc3, arg4);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public useRandPetEgg_async(arg1: AMI_IBag_useRandPetEgg, arg2: string, arg3: int): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("useRandPetEgg");
            var loc3;
            (loc3 = new SerializeStream()).writeString(arg2);
            loc3.writeInt(arg3);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public static /* const */NAME: string="Message.Game.IBag";
    }
